package com.idanchuang.component.consumer;

import com.idanchuang.component.consumer.servlet.ConsumerServletRequestContext;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * @author yjy
 * @date 2020/8/7 17:43
 **/
@Configuration
@ConditionalOnBean(DispatcherServlet.class)
public class ConsumerServletConfiguration {

    @Bean
    public ConsumerServletRequestContext consumerServletRequestContext() {
        return new ConsumerServletRequestContext();
    }


}
